package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户-用户关系表
 * @author 51585
 * @TableName user_link_user
 */
@TableName(value ="user_link_user")
@Data
@ApiModel(value = "用户连接表")
@AllArgsConstructor
@NoArgsConstructor
public class UserLinkUser implements Serializable {
    private static final long serialVersionUID = 3405855629557472498L;
    /**
     * 
     */
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 用户aid
     */
    @ApiModelProperty(value = "用户Aid",required =true)
    @NonNull
    @TableField(value = "user_aid")
    private String userAid;

    /**
     * 用户bid
     */
    @ApiModelProperty(value = "用户Bid",required =true)
    @NonNull
    @TableField(value = "user_bid")
    private String userBid;

    /**
     * 是否置顶，1为置顶，0为不置顶
     */
    @ApiModelProperty(value = "是否置顶",notes = "1为置顶，0为不置顶")
    @TableField(value = "top_status")
    private Integer topStatus;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_at", fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    /**
     * 删除时间
     */
    @ApiModelProperty(value = "删除时间")
    @TableField(value = "deleted_at")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableLogic
    private LocalDateTime deletedAt;

}